<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!--配置标签库  -->
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<title>Insert title here</title>
 
	<link href="${pageContext.request.contextPath}/Js/asserts/css/bootstrap.min.css" rel="stylesheet">
	<link href="${pageContext.request.contextPath}/Js/asserts/css/signin.css" rel="stylesheet">
	
</head>

 	<body class="text-center">

		<form class="form-signin" action="/user/login" method="post">
			<img class="mb-4" src="${pageContext.request.contextPath}/Js/asserts/img/bootstrap-solid.svg" alt="" width="72" height="72">
			<h1 class="h3 mb-3 font-weight-normal"><!-- Please sign in --><spring:message code="login.tip"/></h1>
			
			<c:if test="${msg != null }">
				<p style="color: red">${msg}</p> 
			</c:if> 
			<label class="sr-only"><!-- Username -->  <spring:message code="login.username"/> </label>
			<input type="text" name="name" class="form-control" placeholder="Username" required="" autofocus="">
			<label class="sr-only"><!-- Password --> <spring:message code="login.password"/> </label>
			<input type="password" name="password" class="form-control" placeholder="Password" required="">
			<div class="checkbox mb-3">
				<label> 
          <input type="checkbox" value="remember-me"> <!-- Remember me --> <spring:message code="login.remember"/>
        </label>
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit"><!-- Sign in -->  <spring:message code="login.btn"/> </button>
			<p class="mt-5 mb-3 text-muted">© 2017-2018</p>
			<a class="btn btn-sm" href="${pageContext.request.contextPath}/cte/getcte?language=zh">中文</a>
			<a class="btn btn-sm" href="${pageContext.request.contextPath}/cte/getcte?language=en">English</a>
		</form>

	</body>	
	

</html>